﻿
using Ch13CardLib.enums;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ch13CardLib.entity
{
    public class Card
    {
        public int Id { get; set; }

        public Suit Suit { get; set; }
        public Rank Rank { get; set; }
        public bool IsFaceUp { get; set; }

        public Card(int id, Suit cardSuit, Rank cardRank)
        {
            Id = id;
            Suit = cardSuit;
            Rank = cardRank;
        }

        public string getCardName()
        {
            string cardName = Suit + " " + Rank;

            Console.WriteLine($"cardName : {cardName}");

            return cardName;
        }

    }
}
